// 字符串的扩展方法

const  msg = 'Error: foo is not defined.'

console.log(
    msg.startsWith('Error'),
    msg.endsWith('.'),
    msg.includes('foo')
)



